package com.example.demo.service.impl;

import com.example.demo.dao.INavDao;
import com.example.demo.entity.Nav;
import com.example.demo.service.INavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NavServiceImpl implements INavService {

    @Autowired
    private INavDao navDao;

    @Override
    public void insert(Nav t) {
        navDao.insert(t);
    }

    @Override
    public void update(Nav t) {
        navDao.update(t);
    }

    @Override
    public void delete(int id) {
        navDao.delete(id);
    }

    @Override
    public Nav selectById(int id) {
        return navDao.selectById(id);
    }

    @Override
    public List<Nav> getAll() {
        return navDao.selectAll();
    }

}
